<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core">
    <h:head>
        <title>Modify Minutes</title>
    </h:head>
    <h:body>
        <h:message style="color: red" for="form"/>
        <h:form enctype="multipart/form-data" id="form">
            <h:dataTable value="#{minuteBean.minuteClasses}" var="minute">
                <h:column>
                    <f:facet name="header">Identifier</f:facet>
                    <h:inputText value="#{minute.identifier}" disabled="true" size="20"/>
                </h:column>
                <h:column>
                    <f:facet name="header">Date</f:facet>
                    <h:inputText value="#{minute.date}" size="20"/>
                </h:column>
                <h:column>
                    <f:facet name="header">Group</f:facet>
                    <h:inputText value="#{minute.grp}" size="20"/>
                </h:column>
                <h:column>
                    <f:facet name="header">End Of Semester Report</f:facet>
                    <h:form enctype="multipart/form-data">
                        <h:inputFile value="#{minute.minutesPart}" />
                        <h:commandButton value="Upload" />
                    </h:form>
                </h:column>
            </h:dataTable>
            <h:commandButton id='submit' value="Save" action="#{minuteBean.saveMinute()}" />
        </h:form>
    </h:body>
</html>

